﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace LabHelper.forms
{
    public partial class schoolTeam : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        public schoolTeam()
        {
            InitializeComponent();
        }
        public static String FormName = "SchoolTeam";

        private void schoolTeam_Load(object sender, EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“labSysDataSet1.school_teams”中。您可以根据需要移动或移除它。
            this.school_teamsTableAdapter.Fill(this.labSysDataSet1.school_teams);
            // TODO: 这行代码将数据加载到表“labSysDataSet.member_list”中。您可以根据需要移动或移除它。
            this.member_listTableAdapter.Fill(this.labSysDataSet.member_list);
            // TODO: 这行代码将数据加载到表“labSysDataSet.member_list”中。您可以根据需要移动或移除它。
            this.member_listTableAdapter.Fill(this.labSysDataSet.member_list);

        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            //this.labSysDataSet.team_members.Clear();
            //String name = textName.Text;
            //String cmd = "select * from team_members where 姓名 = 'gu'";
            //SqlDataAdapter adpter = LabHelper.SQLExec.ExecuteSqlForAdapter(cmd);
            //adpter.Fill(this.labSysDataSet.team_members);
        }

        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            //this.team_membersTableAdapter.Update(this.labSysDataSet);
        }

        private void teamName_SelectedIndexChanged(object sender, EventArgs e)
        {
            //System.Data.DataRowView o = (System.Data.DataRowView)this.combteamName.SelectedItem;
            //if (o != null)
            //{
            //    this.textTeamNumb.Text = o.Row.ItemArray[1].ToString();
            //    this.textTeamId.Text = o.Row.ItemArray[0].ToString();
            //}
           
        }
    }
}
